import React from 'react'
// import propTypes from 'prop-types'
export default class Ppp extends React.Component{


    constructor(props){
        super()

    }
  
    render(){
        let {callback}=this.props
        return <div>
            -----------基于props   callback通信----------------
            <button onClick={ev=>{callback(987456)}}>发信息</button>

        </div>
    }
}